package com.web.controller.api;

import com.web.domain.ApiResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * @author FDjavaone
 * @date 2017/11/14
 */
@RestController
@RequestMapping("api")
public class IosController {


    @RequestMapping("/app/ios/flag")
    public ApiResponse flag(HttpServletRequest req, HttpServletResponse resp) {
        ApiResponse response = new ApiResponse();
        Map map = new HashMap();
        map.put("flag", 2);
        response.setParams(map);
        response.setMessage("调用成功！");
        response.setStatus(900000);
        return response;
    }
}
